package com.ruoyi.car.domain;

import com.alibaba.fastjson.JSON;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 车辆-配置信息对象 car_config
 * 
 * @author liujinlei
 * @date 2022-03-06
 */
public class CarConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 动力参数ID */
    private Long carConfigId;

    /** 车辆ID */
    private Long carId;

    /** 配置类型 */
    private String configType;

    /** 详细信息 */
    private String info;

    /** 状态（0正常 1停用） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Getter@Setter
    private JSON infoJson;

    public void setCarConfigId(Long carConfigId) 
    {
        this.carConfigId = carConfigId;
    }

    public Long getCarConfigId() 
    {
        return carConfigId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setConfigType(String configType) 
    {
        this.configType = configType;
    }

    public String getConfigType() 
    {
        return configType;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carConfigId", getCarConfigId())
            .append("carId", getCarId())
            .append("configType", getConfigType())
            .append("info", getInfo())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
